package com.cct.digitalarchapi.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cct.digitalarchapi.pojo.Log4operate;
import com.cct.digitalarchapi.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import javax.ws.rs.MatrixParam;
import java.util.List;


@Repository
public interface RoleMapper extends BaseMapper<Role> {


    String qryHaveRole(@Param("roleName") String roleName);

    void addRole(Role role);

    void updateRole(@Param("roleId") int roleId,@Param("roleName") String roleName);

    void deleteRole(@Param("roleId") int roleId);

    String getRoleNameById(@Param("roleId") int roleId);

    List<Role> getAllRole();




}
